/**
 *
 */
const vendors = {
  // gitee api v5
  gitee: 'https://gitee.com/api/v5',
  // github api v3
  github: 'https://api.github.com'
}
const info = {
  repo: 'TinyForm',
  user: 'hyjiacan',
  // branch tag or commit
  ref: 'master',
  vendor: 'gitee'
}

// 根据不同的API版本配置不同的路径，参考：https://gitee.com/api/v5/repos/hyjiacan/TinyForm/contents/example-resource
const url = `${vendors[info.vendor]}/repos/${info.user}/${info.repo}/contents/{path}?ref=${info.ref}`
const readme = `${vendors[info.vendor]}/repos/${info.user}/${info.repo}/readme?ref=${info.ref}`

export default {
  title: 'BUD-BLOG',
  author: 'hyjiacan',
  mail: 'me@hyjiacan.com',
  icp: '蜀ICP备-12345678号',
  // posts root
  // DO NOT ends with slash
  root: '',
  // static resources root
  // I will ignore this path while resolve categories
  // DO NOT ends with slash
  assets: 'assets',
  url,
  readme
}
